//
//  ViewController.swift
//  SQLiteTest
//
//  Created by Apple on 16/7/31.
//  Copyright © 2016年 Apple. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let array = NSArray(array: [1,2,3,4,5,6,7,8])
        
        let path = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last! + "/array.plist"
        
        array.writeToFile(path, atomically: true)
        
        
        print("NSHomeDirectory(): \(NSHomeDirectory())")
    }
}

